package com.swsc.solarverse.dao.entity.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.swsc.solarverse.dao.entity.base.BaseIntIdDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 逆变器实时数据
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("solar_forward_inverter_data")
public class ForwardInverterDataDO extends BaseIntIdDO {

    /**
     * 租户编号
     */
    @TableField("tenant_no")
    private Integer tenantNo;

    /**
     * 机构编号
     */
    @TableField("organ_no")
    private Integer organNo;

    /**
     * 设备id
     */
    @TableField("device_id")
    private Long deviceId;

    @TableField("device_name")
    private String deviceName;

    /**
     * 直流输入电压|PV电压
     */
    @TableField("voltage")
    private Double voltage;

    /**
     * 直流输入电流|PV电流
     */
    @TableField("electric_current")
    private Double electricCurrent;

    /**
     * PV输入功率
     */
    @TableField("pv_input_power")
    private Double pvInputPower;

    /**
     * 日发电量
     */
    @TableField("power_generation")
    private Double powerGeneration;

    /**
     * 输出总有功
     */
    @TableField("total_output")
    private Double totalOutput;

    /**
     * 数据时间
     */
    @TableField("data_time")
    private LocalDateTime dataTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    public ForwardInverterDataDO() {
    }

    public ForwardInverterDataDO(Integer tenantNo, Integer organNo, Long deviceId, String deviceName, LocalDateTime dataTime, LocalDateTime createTime) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.dataTime = dataTime;
        this.createTime = createTime;
    }
}
